﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CycleTimeReport.PriorityColumnCellDataTemplateSelector
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows;
using System.Windows.Controls;


namespace DnProcessSimulateCommands.CycleTimeReport;

public class PriorityColumnCellDataTemplateSelector : DataTemplateSelector
{
  public DataTemplate PriorityColumnNumericCellTemplate { get; set; }

  public DataTemplate PriorityColumnEmptyCellTemplate { get; set; }

  public override DataTemplate SelectTemplate(object item, DependencyObject container)
  {
    return item is CApCTRSettingsTimerInfo settingsTimerInfo && !(settingsTimerInfo is CApCTRSettingsTimerInfoSupportPriority) ? this.PriorityColumnEmptyCellTemplate : this.PriorityColumnNumericCellTemplate;
  }
}
